package com.hdoit.apollo.logical.inStock.model;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.hdoit.apollo.logical.purchase.model.Purchase;
import com.hdoit.apollo.logical.shop.model.Supplier;
import com.tennetcn.data.message.ModelBase;

import javax.persistence.Entity;
/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月02日 11:54:51
 * @comment
 */
@Entity
@Table(name="stock_in_stock")
public class InStock extends ModelBase{
    //Id
    @Id
    @Column(name="inStockId")
    private String inStockId;

    //入库数
    @Column(name="inStockNum")
    private Double inStockNum;
    
    //入库种类数
    @Column(name="inStockTypeNum")
    private Integer inStockTypeNum;
    
    @Column(name="type")
    private String type;


    //入库状态
    @Column(name="inStockState")
    private String inStockState;
    
    //经办人
    @Column(name="operatorName")
    private String operatorName;

    //门店id
    @Column(name="shopId")
    private String shopId;
    
    //变动操作记录
    @Column(name="changeCode")
    private String changeCode;

    //创建时间
    @Column(name="createDate")
    private Date createDate;

    //创建人id
    @Column(name="createUserId")
    private String createUserId;

    //创建人名称
    @Column(name="createUserName")
    private String createUserName;

    //修改时间
    @Column(name="modifyDate")
    private Date modifyDate;

    //修改人id
    @Column(name="modifyUserId")
    private String modifyUserId;

    //修改人名称
    @Column(name="modifyUserName")
    private String modifyUserName;

    //删除标记
    @Column(name="deleteMark")
    private Integer deleteMark;
    
    //备注
    @Column(name="comment")
    private String comment;
    
	@Transient
    private List<InStockShow> inStockShows;
	
	@Transient
	private Purchase purchase;
	
	@Transient
	private Supplier supplier;
	
	//关联采购订单,暂时废弃
	@Column(name="purchaseId")
	private String purchaseId;
	
	//新采购退货单，不关联订单，关联客户
	@Column(name="supplierId")
	private String supplierId;
	
	//仓库
	@Column(name="warehouse")
	private String warehouse;
	
	//入库单号
	@Column(name="inStockNo")
	private String inStockNo;
	
	//采购退货金额
	@Column(name="returnMoney")
	private Double returnMoney;
	
	public Double getReturnMoney() {
		return returnMoney;
	}
	public void setReturnMoney(Double returnMoney) {
		this.returnMoney = returnMoney;
	}
	@Transient
	private String collocationIds;
	
	@Transient
	private String inStockNums;
	
	@Transient
	private String inStockPrices;
	
	//采购存储比率，提供查询
	@Transient
	private String unit;
	
	
    public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getPurchaseId() {
		return purchaseId;
	}
	public void setPurchaseId(String purchaseId) {
		this.purchaseId = purchaseId;
	}
	public String getChangeCode() {
		return changeCode;
	}
	public void setChangeCode(String changeCode) {
		this.changeCode = changeCode;
	}
	public Integer getInStockTypeNum() {
		return inStockTypeNum;
	}
	public void setInStockTypeNum(Integer inStockTypeNum) {
		this.inStockTypeNum = inStockTypeNum;
	}
	public List<InStockShow> getInStockShows() {
		return inStockShows;
	}
	public void setInStockShows(List<InStockShow> inStockShows) {
		this.inStockShows = inStockShows;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}

    public String getInStockId(){
        return this.inStockId;
    }
    public void setInStockId(String inStockId){
         this.inStockId=inStockId;
    }

    public Double getInStockNum(){
        return this.inStockNum;
    }
    public void setInStockNum(Double inStockNum){
         this.inStockNum=inStockNum;
    }

    public String getInStockState(){
        return this.inStockState;
    }
    public void setInStockState(String inStockState){
         this.inStockState=inStockState;
    }

    public String getShopId(){
        return this.shopId;
    }
    public void setShopId(String shopId){
         this.shopId=shopId;
    }

    public Date getCreateDate(){
        return this.createDate;
    }
    public void setCreateDate(Date createDate){
         this.createDate=createDate;
    }

    public String getCreateUserId(){
        return this.createUserId;
    }
    public void setCreateUserId(String createUserId){
         this.createUserId=createUserId;
    }

    public String getCreateUserName(){
        return this.createUserName;
    }
    public void setCreateUserName(String createUserName){
         this.createUserName=createUserName;
    }

    public Date getModifyDate(){
        return this.modifyDate;
    }
    public void setModifyDate(Date modifyDate){
         this.modifyDate=modifyDate;
    }

    public String getModifyUserId(){
        return this.modifyUserId;
    }
    public void setModifyUserId(String modifyUserId){
         this.modifyUserId=modifyUserId;
    }

    public String getModifyUserName(){
        return this.modifyUserName;
    }
    public void setModifyUserName(String modifyUserName){
         this.modifyUserName=modifyUserName;
    }

    public Integer getDeleteMark(){
        return this.deleteMark;
    }
    public void setDeleteMark(Integer deleteMark){
         this.deleteMark=deleteMark;
    }
	public String getWarehouse() {
		return warehouse;
	}
	public void setWarehouse(String warehouse) {
		this.warehouse = warehouse;
	}
	public String getInStockNo() {
		return inStockNo;
	}
	public void setInStockNo(String inStockNo) {
		this.inStockNo = inStockNo;
	}
	public String getCollocationIds() {
		return collocationIds;
	}
	public void setCollocationIds(String collocationIds) {
		this.collocationIds = collocationIds;
	}
	public String getInStockNums() {
		return inStockNums;
	}
	public void setInStockNums(String inStockNums) {
		this.inStockNums = inStockNums;
	}
	public Purchase getPurchase() {
		return purchase;
	}
	public void setPurchase(Purchase purchase) {
		this.purchase = purchase;
	}
	public String getInStockPrices() {
		return inStockPrices;
	}
	public void setInStockPrices(String inStockPrices) {
		this.inStockPrices = inStockPrices;
	}
	public String getSupplierId() {
		return supplierId;
	}
	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getOperatorName() {
		return operatorName;
	}
	public void setOperatorName(String operatorName) {
		this.operatorName = operatorName;
	}
	public Supplier getSupplier() {
		return supplier;
	}
	public void setSupplier(Supplier supplier) {
		this.supplier = supplier;
	}


}
